package src.com.ny.service.impl;

import src.com.ny.Dao.impl.ProductDao;
import src.com.ny.Dao.impl.ProductDaoImpl;
import src.com.ny.entity.Product;

import java.sql.SQLException;
import java.util.List;

public class ProductServiceImpl {
    private ProductDao productDao;
    public ProductServiceImpl () throws SQLException, ClassNotFoundException {
        this.productDao = new ProductDaoImpl();
    }
    public List<Product> findAllProduct() throws SQLException {
        return productDao.findAllProducts();
    }
}
